/*
 * Copyright (C) 2011  John Lawrence thegordo.john at gmail.com
 * Licensed under GPLv3 or later. see http://www.gnu.org/copyleft/gpl.html
 */

package org.jklawrencefam.server.smtp.command;

import org.jklawrencefam.server.smtp.SmtpProtocol;

import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.when;

/**
 * User: John Lawrence
 * Date: 8/24/11
 * Time: 1:10 PM
 */
public class CommandTestUtils {
    public static SmtpProtocol getMockProtocol() {
        SmtpProtocol protocol = mock(SmtpProtocol.class);
        when(protocol.getHostname()).thenReturn("hostname");
        return protocol;
    }
}
